<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="includes.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="css/jot.css" type="text/css" rel="stylesheet">
</head>
<body>
    <form id="taskForm" action="" title="${task.name}" class="dlg">
        <div class="dlg">
        <input type="hidden" value="${task.name}" id="dlg_title"/>
    
        <h4><spring:message code="messages.task.answers"/></h4>
        ${task.answer}
        
        <hr/>
        <table style="margin-top: -10px; width: 100%">
            <tr>
                <td>
                    <h4><spring:message code="messages.task.task"/></h4>
                </td>
                <td>
                    <div style="float: right">
	                    <button type="button" class="btn" onclick="return changeTaskState(${task.id})">
	                           <c:if test="${task.enabled}">
	                                <spring:message code="messages.task.disable"/>
	                           </c:if>
	                           <c:if test="${!task.enabled}">
	                                <spring:message code="messages.task.enable"/>
	                           </c:if>
	                    </button>
                    </div>
                </td>
            </tr>
        </table>
        ${task.puzzle}

		<hr/>
        <h4><spring:message code="messages.task.first_hint"/></h4>
		${task.firstHint}

		<hr/>
		<h4><spring:message code="messages.task.second_hint"/></h4>
		${task.secondHint}
        </div>
    </form>                      
</body>
</html>